import * as types from './mutation-types'

export default {
  loadNavbars({ commit }, uri) {
    commit(types.LOAD_NAVBARS, uri);
  },
  loadMobileNavbars({ commit }) {
    commit(types.LOAD_MOBILE_NAVBARS);
  },
  timerTasks({ commit }) {
    commit(types.TIMER_TASKS);
  },
  loadEnvelopes({ commit }) {
    commit(types.LOAD_ENVELOPES);
  },
  markRead({ commit }, id) {
    commit(types.MARK_READ, id);
  },
  updateTopIndex({ commit }, id) {
    commit(types.UPDATE_TOP_INDEX, id);
  },
  saveUserLocale({ commit }, locale) {
    commit(types.SAVE_USER_LOCALE, locale);
  },
};
